package com.woniuxy02;

import java.util.ArrayList;
import java.util.Collection;

public class Test02 {
    public static void main(String[] args) {
        //泛型集合
        //Collection<String> strs=new ArrayList<>();
        //Collection<String> strs=new ArrayList();
        Collection<String> strs=new ArrayList<String>();
        strs.add("aaa");
        strs.add("bbb");
        for (String str : strs) {
            System.out.println(str.toUpperCase());
        }

//        Collection<int> c1;
        Collection<Integer> c1;
    }
}
